package com.note7_9;

public class Rename {

	private String name;

	public void setName(String name) {
		synchronized (this) {
			this.name = name;
			try{
				Thread.sleep(2000);
			}catch(Exception e){
				e.printStackTrace();
			}
		}
	}
	
}
